package com.dubbo.client;


import com.dubbo.test.MyInterface;

import java.lang.reflect.Proxy;

public class ProxyClient<T> {
    
	
	
	public <T> T getProxyClient(String host,int port){
		
		MyInvocation<T> myinvo=new MyInvocation<T>(host, port);

		Class<?>[] ints={MyInterface.class};

		T tt=(T)Proxy.newProxyInstance(MyInterface.class.getClassLoader(),ints, myinvo);

		return tt;
	}
	
	
}
